|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.admin.hci.InstanceStatus
public class InstanceStatus
This Java class represents an instance status that describes the running status (on, off, waiting) of a specific instance of the SAP CC system;
It contains a list of instance properties.
InstanceProperty,
SystemStatus The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="instanceStatus">
<xs:complexType>
<xs:sequence>
<xs:element ref="instanceProperty" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="instanceId" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="((dispatcher|updater|rater|guider|bulkLoader|taxer)#\d)"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="status" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="(on|off|waiting)"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
| Field Summary | |
|---|---|
static java.lang.String |
TAG_NAME
The XML tag name of this class: "instanceStatus" |
| Constructor Summary | |
|---|---|
InstanceStatus()
InstanceStatus default constructor |
|
InstanceStatus(InstanceId instanceId,
InstanceInfo instanceInfo)
Builds a new InstanceStatus instance from an InstanceId and an InstanceInfo |
|
| Method Summary | |
|---|---|
void |
addBooleanProperty(java.lang.String name,
boolean value)
Add a property the instance given its name and value as the boolean |
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the child representing
the marshallable object which must be added to the element. |
void |
addDateProperty(java.lang.String name,
java.util.Date value)
Add a property the instance given its name and value as the date |
void |
addDecimalProperty(java.lang.String name,
java.math.BigDecimal value)
Add a property the instance given its name and value as the big decimal |
void |
addIntegerProperty(java.lang.String name,
int value)
Add a property the instance given its name and value as the integer |
void |
addLongProperty(java.lang.String name,
long value)
Add a property the instance given its name and value as the long |
void |
addProperty(java.lang.String name,
java.lang.String value)
Add a property the instance given its name and value as the string |
java.util.List<java.lang.String> |
getAllPropertyNames()
Get the names of all the properties defined in this object |
boolean |
getBooleanProperty(java.lang.String name)
Get an instance property as a boolean given its name |
java.util.Date |
getDateProperty(java.lang.String name)
Get an instance property as a date given its name |
java.math.BigDecimal |
getDecimalProperty(java.lang.String name)
Get an instance property as a big decimal given its name |
InstanceId |
getInstanceId()
Get the instance identifier |
InstanceInfo |
getInstanceInfo()
Get the instance info |
java.lang.Integer |
getIntegerProperty(java.lang.String name)
Get an instance property as an integer given its name |
java.lang.Long |
getLongProperty(java.lang.String name)
Get an instance property as a long given its name |
java.lang.String |
getProperty(java.lang.String name)
Get an instance property as a string given its name |
ServerStatus |
getStatus()
Returns the status of the instance of the SAP CC system |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed. |
void |
setStatus(ServerStatus status)
Set the instance status |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TAG_NAME
| Constructor Detail |
|---|
public InstanceStatus()
public InstanceStatus(InstanceId instanceId,
InstanceInfo instanceInfo)
InstanceStatus instance from an InstanceId and an InstanceInfo
instanceId - The specified InstanceIdinstanceInfo - The specified InstanceInfo| Method Detail |
|---|
public ServerStatus getStatus()
public void setStatus(ServerStatus status)
status - The instance status to setpublic InstanceId getInstanceId()
public InstanceInfo getInstanceInfo()
InstanceInfopublic java.lang.String getProperty(java.lang.String name)
instance property as a string given its name
name - The property name
nullpublic java.util.List<java.lang.String> getAllPropertyNames()
properties defined in this object
properties defined in this objectpublic java.math.BigDecimal getDecimalProperty(java.lang.String name)
name - The property name
public java.util.Date getDateProperty(java.lang.String name)
name - The property name
public boolean getBooleanProperty(java.lang.String name)
name - The property name
public java.lang.Integer getIntegerProperty(java.lang.String name)
name - The property name
public java.lang.Long getLongProperty(java.lang.String name)
name - The property name
public void addProperty(java.lang.String name,
java.lang.String value)
name - The property name to addvalue - The property value as a string to add
public void addDecimalProperty(java.lang.String name,
java.math.BigDecimal value)
name - The property name to addvalue - The property value as a big decimal to add
public void addDateProperty(java.lang.String name,
java.util.Date value)
name - The property name to addvalue - The property value as a date to add
public void addBooleanProperty(java.lang.String name,
boolean value)
name - The property name to addvalue - The property value as a boolean to add
public void addIntegerProperty(java.lang.String name,
int value)
name - The property name to addvalue - The property value as a integer to add
public void addLongProperty(java.lang.String name,
long value)
name - The property name to addvalue - The property value as a long to addpublic void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - The XML attributes of the current element
public void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.
addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - The XML output to marshal the object into
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||